<?php
$tdatatbl_thu_vien=array();
	$tdatatbl_thu_vien[".NumberOfChars"]=80; 
	$tdatatbl_thu_vien[".ShortName"]="tbl_thu_vien";
	$tdatatbl_thu_vien[".OwnerID"]="";
	$tdatatbl_thu_vien[".OriginalTable"]="tbl_thu_vien";


	
//	field labels
$fieldLabelstbl_thu_vien = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_thu_vien["English"]=array();
	$fieldToolTipstbl_thu_vien["English"]=array();
	$fieldLabelstbl_thu_vien["English"]["id"] = "Id";
	$fieldToolTipstbl_thu_vien["English"]["id"] = "";
	$fieldLabelstbl_thu_vien["English"]["tieu_de"] = "Tieu De";
	$fieldToolTipstbl_thu_vien["English"]["tieu_de"] = "";
	$fieldLabelstbl_thu_vien["English"]["mo_ta_chi_tiet"] = "Mo Ta Chi Tiet";
	$fieldToolTipstbl_thu_vien["English"]["mo_ta_chi_tiet"] = "";
	if (count($fieldToolTipstbl_thu_vien["English"])){
		$tdatatbl_thu_vien[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_thu_vien[".NCSearch"]=true;

	

$tdatatbl_thu_vien[".shortTableName"] = "tbl_thu_vien";
$tdatatbl_thu_vien[".nSecOptions"] = 0;
$tdatatbl_thu_vien[".recsPerRowList"] = 1;	
$tdatatbl_thu_vien[".tableGroupBy"] = "0";
$tdatatbl_thu_vien[".mainTableOwnerID"] = "";
$tdatatbl_thu_vien[".moveNext"] = 1;




$tdatatbl_thu_vien[".showAddInPopup"] = false;

$tdatatbl_thu_vien[".showEditInPopup"] = false;

$tdatatbl_thu_vien[".showViewInPopup"] = false;


$tdatatbl_thu_vien[".fieldsForRegister"] = array();
	
$tdatatbl_thu_vien[".listAjax"] = false;

	$tdatatbl_thu_vien[".audit"] = true;

	$tdatatbl_thu_vien[".locking"] = false;
	
$tdatatbl_thu_vien[".listIcons"] = true;
$tdatatbl_thu_vien[".edit"] = true;
$tdatatbl_thu_vien[".inlineEdit"] = true;
$tdatatbl_thu_vien[".view"] = true;

$tdatatbl_thu_vien[".exportTo"] = true;

$tdatatbl_thu_vien[".printFriendly"] = true;

$tdatatbl_thu_vien[".delete"] = true;

$tdatatbl_thu_vien[".showSimpleSearchOptions"] = false;

$tdatatbl_thu_vien[".showSearchPanel"] = true;


$tdatatbl_thu_vien[".isUseAjaxSuggest"] = true;

$tdatatbl_thu_vien[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_thu_vien[".addPageEvents"] = false;

$tdatatbl_thu_vien[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_thu_vien[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_thu_vien[".isUseTimeForSearch"] = false;

$tdatatbl_thu_vien[".isUseiBox"] = false;



$tdatatbl_thu_vien[".isUseInlineAdd"] = true;

$tdatatbl_thu_vien[".isUseInlineEdit"] = true;
$tdatatbl_thu_vien[".isUseInlineJs"] = $tdatatbl_thu_vien[".isUseInlineAdd"] || $tdatatbl_thu_vien[".isUseInlineEdit"];

$tdatatbl_thu_vien[".allSearchFields"] = array();

$tdatatbl_thu_vien[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_thu_vien[".allSearchFields"]))
{
	$tdatatbl_thu_vien[".allSearchFields"][] = "id";	
}
$tdatatbl_thu_vien[".globSearchFields"][] = "tieu_de";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de", $tdatatbl_thu_vien[".allSearchFields"]))
{
	$tdatatbl_thu_vien[".allSearchFields"][] = "tieu_de";	
}


$tdatatbl_thu_vien[".googleLikeFields"][] = "id";
$tdatatbl_thu_vien[".googleLikeFields"][] = "tieu_de";



$tdatatbl_thu_vien[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_thu_vien[".allSearchFields"])) 
{
	$tdatatbl_thu_vien[".allSearchFields"][] = "id";	
}
$tdatatbl_thu_vien[".advSearchFields"][] = "tieu_de";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de", $tdatatbl_thu_vien[".allSearchFields"])) 
{
	$tdatatbl_thu_vien[".allSearchFields"][] = "tieu_de";	
}
$tdatatbl_thu_vien[".advSearchFields"][] = "mo_ta_chi_tiet";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet", $tdatatbl_thu_vien[".allSearchFields"])) 
{
	$tdatatbl_thu_vien[".allSearchFields"][] = "mo_ta_chi_tiet";	
}

$tdatatbl_thu_vien[".isTableType"] = "list";


	

$tdatatbl_thu_vien[".isDisplayLoading"] = true;

$tdatatbl_thu_vien[".isResizeColumns"] = false;





$tdatatbl_thu_vien[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_thu_vien[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_thu_vien[".orderindexes"] = array();

$tdatatbl_thu_vien[".sqlHead"] = "SELECT id,  tieu_de,  mo_ta_chi_tiet";
$tdatatbl_thu_vien[".sqlFrom"] = "FROM tbl_thu_vien";
$tdatatbl_thu_vien[".sqlWhereExpr"] = "";
$tdatatbl_thu_vien[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_thu_vien[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_thu_vien[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_thu_vien[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_thu_vien";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_thu_vien["id"]=$fdata;
//	tieu_de
	$fdata = array();
	$fdata["strName"] = "tieu_de";
	$fdata["ownerTable"] = "tbl_thu_vien";
		$fdata["Label"]="Tieu De"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieu_de";
	
		$fdata["FullName"]= "tieu_de";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=50";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_thu_vien["tieu_de"]=$fdata;
//	mo_ta_chi_tiet
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet";
	$fdata["ownerTable"] = "tbl_thu_vien";
		$fdata["Label"]="Mo Ta Chi Tiet"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet";
	
		$fdata["FullName"]= "mo_ta_chi_tiet";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=500";
		$fdata["nRows"] = 500;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_thu_vien["mo_ta_chi_tiet"]=$fdata;

	
$tables_data["tbl_thu_vien"]=&$tdatatbl_thu_vien;
$field_labels["tbl_thu_vien"] = &$fieldLabelstbl_thu_vien;
$fieldToolTips["tbl_thu_vien"] = &$fieldToolTipstbl_thu_vien;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_thu_vien"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_thu_vien"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  tieu_de,  mo_ta_chi_tiet";
$proto0["m_strFrom"] = "FROM tbl_thu_vien";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_thu_vien"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "tieu_de",
	"m_strTable" => "tbl_thu_vien"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet",
	"m_strTable" => "tbl_thu_vien"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto11=array();
$proto11["m_link"] = "SQLL_MAIN";
			$proto12=array();
$proto12["m_strName"] = "tbl_thu_vien";
$proto12["m_columns"] = array();
$proto12["m_columns"][] = "id";
$proto12["m_columns"][] = "tieu_de";
$proto12["m_columns"][] = "mo_ta_chi_tiet";
$obj = new SQLTable($proto12);

$proto11["m_table"] = $obj;
$proto11["m_alias"] = "";
$proto13=array();
$proto13["m_sql"] = "";
$proto13["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto13["m_column"]=$obj;
$proto13["m_contained"] = array();
$proto13["m_strCase"] = "";
$proto13["m_havingmode"] = "0";
$proto13["m_inBrackets"] = "0";
$proto13["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto13);

$proto11["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto11);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

$queryData_tbl_thu_vien = $obj;
$tdatatbl_thu_vien[".sqlquery"] = $queryData_tbl_thu_vien;

$tableEvents["tbl_thu_vien"] = new eventsBase;

?>
